<?
require_once("include.php");

$me=false;
require_once("header.session.php");
require_once("header.gui.php");
require_once("header.misc.php");
require_once("header.admin.php");

if(!$me) {
$me=&new Person($_SESSION['id']);
}
if(isset($_POST['script']) AND isset($_POST['name'])) {
	connectToDB();
	addNewPage($_POST['name'],$_POST['script']);
}

//globals
$MenuObjects= $me->getMyMenu();
$Title="WIMON";


function Headers() {
	
}
function Body() {

?>
At this page you can add new pages to the WIMON system. Any pages not added to 
the system will always return an access denied error.
<br>
<br>
<form action="add_new_page.php" method="post">
<table border="0">
<tr><td>
Page title:
</td><td>
<input type="text" name="name">
</td></tr>
<tr><td>
Script location:
</td><td>
<input type="text" name="script">
</td></tr>
<tr><td colspan="2">
<input type="submit" value="Create">
</td></tr></table></form>
<?
}

include("template.php");